<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aether.Physics2D: RealExplosion Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NugetLogo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aether.Physics2D
   &#160;<span id="projectnumber">2.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">RealExplosion Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Creates a realistic explosion based on raycasting. Objects in the open will be affected, but objects behind static bodies will not. A body that is half in cover, half in the open will get half the force applied to the end in the open.  
 <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#details">More...</a></p>
<div class="dynheader">
Inheritance diagram for RealExplosion:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion__inherit__graph.svg" width="134" height="195"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<div class="dynheader">
Collaboration diagram for RealExplosion:</div>
<div class="dyncontent">
<div class="center"><iframe scrolling="no" frameborder="0" src="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion__coll__graph.svg" width="134" height="195"><p><b>This browser is not able to show SVG: try Firefox, Chrome, Safari, or Opera instead.</b></p></iframe>
</div>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:aa86299372e2193a2e860e315e9d3a11c"><td class="memItemLeft" align="right" valign="top"><a id="aa86299372e2193a2e860e315e9d3a11c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>RealExplosion</b> (<a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_dynamics_1_1_world.html">World</a> world)</td></tr>
<tr class="separator:aa86299372e2193a2e860e315e9d3a11c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa155a8183216feb30fa0578b781a2423"><td class="memItemLeft" align="right" valign="top">Dictionary&lt; <a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_dynamics_1_1_fixture.html">Fixture</a>, <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#aa155a8183216feb30fa0578b781a2423">Activate</a> (<a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a> pos, float radius, float maxForce)</td></tr>
<tr class="memdesc:aa155a8183216feb30fa0578b781a2423"><td class="mdescLeft">&#160;</td><td class="mdescRight">Activate the explosion at the specified position.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#aa155a8183216feb30fa0578b781a2423">More...</a><br /></td></tr>
<tr class="separator:aa155a8183216feb30fa0578b781a2423"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic.html">PhysicsLogic</a></td></tr>
<tr class="memitem:aba13b67f12caccff864d7109b51ac73d inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td class="memItemLeft" align="right" valign="top"><a id="aba13b67f12caccff864d7109b51ac73d"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>PhysicsLogic</b> (<a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_dynamics_1_1_world.html">World</a> world)</td></tr>
<tr class="separator:aba13b67f12caccff864d7109b51ac73d inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8154c9f27c7becbccacf50f1eeaa4aff inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td class="memItemLeft" align="right" valign="top">override bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic.html#a8154c9f27c7becbccacf50f1eeaa4aff">IsActiveOn</a> (<a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_dynamics_1_1_body.html">Body</a> body)</td></tr>
<tr class="separator:a8154c9f27c7becbccacf50f1eeaa4aff inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html">FilterData</a></td></tr>
<tr class="memitem:a132b248c4ddbcf5ec6b04208e0ef60a7 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a132b248c4ddbcf5ec6b04208e0ef60a7">AddDisabledCategory</a> (Category category)</td></tr>
<tr class="memdesc:a132b248c4ddbcf5ec6b04208e0ef60a7 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the category.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a132b248c4ddbcf5ec6b04208e0ef60a7">More...</a><br /></td></tr>
<tr class="separator:a132b248c4ddbcf5ec6b04208e0ef60a7 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab15e5dba449204c04296c752e2d11d3e inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#ab15e5dba449204c04296c752e2d11d3e">RemoveDisabledCategory</a> (Category category)</td></tr>
<tr class="memdesc:ab15e5dba449204c04296c752e2d11d3e inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the category.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#ab15e5dba449204c04296c752e2d11d3e">More...</a><br /></td></tr>
<tr class="separator:ab15e5dba449204c04296c752e2d11d3e inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d6bbb270e8ed5be5a31763e281b44d6 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a1d6bbb270e8ed5be5a31763e281b44d6">IsInDisabledCategory</a> (Category category)</td></tr>
<tr class="memdesc:a1d6bbb270e8ed5be5a31763e281b44d6 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether this body ignores the the specified controller.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a1d6bbb270e8ed5be5a31763e281b44d6">More...</a><br /></td></tr>
<tr class="separator:a1d6bbb270e8ed5be5a31763e281b44d6 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3ab1d065d3ab249d102bc4b27f3eaba4 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a3ab1d065d3ab249d102bc4b27f3eaba4">AddEnabledCategory</a> (Category category)</td></tr>
<tr class="memdesc:a3ab1d065d3ab249d102bc4b27f3eaba4 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds the category.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a3ab1d065d3ab249d102bc4b27f3eaba4">More...</a><br /></td></tr>
<tr class="separator:a3ab1d065d3ab249d102bc4b27f3eaba4 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb2199c51dc40168079d3303cad1fa1d inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#aeb2199c51dc40168079d3303cad1fa1d">RemoveEnabledCategory</a> (Category category)</td></tr>
<tr class="memdesc:aeb2199c51dc40168079d3303cad1fa1d inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Removes the category.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#aeb2199c51dc40168079d3303cad1fa1d">More...</a><br /></td></tr>
<tr class="separator:aeb2199c51dc40168079d3303cad1fa1d inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70f13a7871af18288bab9ffb9ea1cc65 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a70f13a7871af18288bab9ffb9ea1cc65">IsInEnabledInCategory</a> (Category category)</td></tr>
<tr class="memdesc:a70f13a7871af18288bab9ffb9ea1cc65 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether this body ignores the the specified controller.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a70f13a7871af18288bab9ffb9ea1cc65">More...</a><br /></td></tr>
<tr class="separator:a70f13a7871af18288bab9ffb9ea1cc65 inherit pub_methods_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a3a649535b23acb69ff4f1b45e72b9260"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#a3a649535b23acb69ff4f1b45e72b9260">EdgeRatio</a> = 1.0f / 40.0f</td></tr>
<tr class="memdesc:a3a649535b23acb69ff4f1b45e72b9260"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ratio of arc length to angle from edges to first ray tested. Defaults to 1/40.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#a3a649535b23acb69ff4f1b45e72b9260">More...</a><br /></td></tr>
<tr class="separator:a3a649535b23acb69ff4f1b45e72b9260"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab930d7df5785acffc9670f6e53d9577"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#aab930d7df5785acffc9670f6e53d9577">IgnoreWhenInsideShape</a> = false</td></tr>
<tr class="memdesc:aab930d7df5785acffc9670f6e53d9577"><td class="mdescLeft">&#160;</td><td class="mdescRight">Ignore Explosion if it happens inside a shape. Default value is false.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#aab930d7df5785acffc9670f6e53d9577">More...</a><br /></td></tr>
<tr class="separator:aab930d7df5785acffc9670f6e53d9577"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0fe1d5703fdce33a031b23f58dfd5ed2"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#a0fe1d5703fdce33a031b23f58dfd5ed2">MaxAngle</a> = Constant.Pi / 15</td></tr>
<tr class="memdesc:a0fe1d5703fdce33a031b23f58dfd5ed2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Max angle between rays (used when segment is large). Defaults to 15 degrees  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#a0fe1d5703fdce33a031b23f58dfd5ed2">More...</a><br /></td></tr>
<tr class="separator:a0fe1d5703fdce33a031b23f58dfd5ed2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1501f9b40800d4e8cd6190b181e61f5d"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#a1501f9b40800d4e8cd6190b181e61f5d">MaxShapes</a> = 100</td></tr>
<tr class="memdesc:a1501f9b40800d4e8cd6190b181e61f5d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of shapes involved in the explosion. Defaults to 100  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#a1501f9b40800d4e8cd6190b181e61f5d">More...</a><br /></td></tr>
<tr class="separator:a1501f9b40800d4e8cd6190b181e61f5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0068f329bc3a0da392be609b39b2207f"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#a0068f329bc3a0da392be609b39b2207f">MinRays</a> = 5</td></tr>
<tr class="memdesc:a0068f329bc3a0da392be609b39b2207f"><td class="mdescLeft">&#160;</td><td class="mdescRight">How many rays per shape/body/segment. Defaults to 5  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html#a0068f329bc3a0da392be609b39b2207f">More...</a><br /></td></tr>
<tr class="separator:a0068f329bc3a0da392be609b39b2207f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic.html">PhysicsLogic</a></td></tr>
<tr class="memitem:a1e4e2b809a45a820de9376256d3bf0c0 inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td class="memItemLeft" align="right" valign="top"><a id="a1e4e2b809a45a820de9376256d3bf0c0"></a>
ControllerCategory&#160;</td><td class="memItemRight" valign="bottom"><b>ControllerCategory</b> = ControllerCategory.Cat01</td></tr>
<tr class="separator:a1e4e2b809a45a820de9376256d3bf0c0 inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td colspan="2" onclick="javascript:toggleInherit('pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data')"><img src="closed.png" alt="-"/>&#160;Public Attributes inherited from <a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html">FilterData</a></td></tr>
<tr class="memitem:a3ed289991bba5358ffd7f7a54a1e1c6a inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">Category&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a3ed289991bba5358ffd7f7a54a1e1c6a">DisabledOnCategories</a> = Category.None</td></tr>
<tr class="memdesc:a3ed289991bba5358ffd7f7a54a1e1c6a inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the logic on specific categories. Category.None by default.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a3ed289991bba5358ffd7f7a54a1e1c6a">More...</a><br /></td></tr>
<tr class="separator:a3ed289991bba5358ffd7f7a54a1e1c6a inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa7c5e7b717cfe847dd9ef362691af48c inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#aa7c5e7b717cfe847dd9ef362691af48c">DisabledOnGroup</a></td></tr>
<tr class="memdesc:aa7c5e7b717cfe847dd9ef362691af48c inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disable the logic on specific groups  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#aa7c5e7b717cfe847dd9ef362691af48c">More...</a><br /></td></tr>
<tr class="separator:aa7c5e7b717cfe847dd9ef362691af48c inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a20478d647a39fcf4c22af0e6ed844d2d inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">Category&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a20478d647a39fcf4c22af0e6ed844d2d">EnabledOnCategories</a> = Category.All</td></tr>
<tr class="memdesc:a20478d647a39fcf4c22af0e6ed844d2d inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the logic on specific categories Category.All by default.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#a20478d647a39fcf4c22af0e6ed844d2d">More...</a><br /></td></tr>
<tr class="separator:a20478d647a39fcf4c22af0e6ed844d2d inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3bebf19d04c08ca0f68379d192b6acf inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#ad3bebf19d04c08ca0f68379d192b6acf">EnabledOnGroup</a></td></tr>
<tr class="memdesc:ad3bebf19d04c08ca0f68379d192b6acf inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enable the logic on specific groups.  <a href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data.html#ad3bebf19d04c08ca0f68379d192b6acf">More...</a><br /></td></tr>
<tr class="separator:ad3bebf19d04c08ca0f68379d192b6acf inherit pub_attribs_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_filter_data"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header properties_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td colspan="2" onclick="javascript:toggleInherit('properties_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic')"><img src="closed.png" alt="-"/>&#160;Properties inherited from <a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic.html">PhysicsLogic</a></td></tr>
<tr class="memitem:addad4c6d854b8c10bcf693736126f9ee inherit properties_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td class="memItemLeft" align="right" valign="top"><a id="addad4c6d854b8c10bcf693736126f9ee"></a>
<a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_dynamics_1_1_world.html">World</a>&#160;</td><td class="memItemRight" valign="bottom"><b>World</b><code> [get, set]</code></td></tr>
<tr class="separator:addad4c6d854b8c10bcf693736126f9ee inherit properties_classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_physics_logic"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Creates a realistic explosion based on raycasting. Objects in the open will be affected, but objects behind static bodies will not. A body that is half in cover, half in the open will get half the force applied to the end in the open. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="aa155a8183216feb30fa0578b781a2423"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa155a8183216feb30fa0578b781a2423">&#9670;&nbsp;</a></span>Activate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Dictionary&lt;<a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_dynamics_1_1_fixture.html">Fixture</a>, <a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&gt; Activate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_vector2.html">Vector2</a>&#160;</td>
          <td class="paramname"><em>pos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>radius</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>maxForce</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Activate the explosion at the specified position. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">pos</td><td>The position where the explosion happens </td></tr>
    <tr><td class="paramname">radius</td><td>The explosion radius </td></tr>
    <tr><td class="paramname">maxForce</td><td>The explosion force at the explosion point (then is inversely proportional to the square of the distance)</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A list of bodies and the amount of force that was applied to them.</dd></dl>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a3a649535b23acb69ff4f1b45e72b9260"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3a649535b23acb69ff4f1b45e72b9260">&#9670;&nbsp;</a></span>EdgeRatio</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float EdgeRatio = 1.0f / 40.0f</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Ratio of arc length to angle from edges to first ray tested. Defaults to 1/40. </p>

</div>
</div>
<a id="aab930d7df5785acffc9670f6e53d9577"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aab930d7df5785acffc9670f6e53d9577">&#9670;&nbsp;</a></span>IgnoreWhenInsideShape</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool IgnoreWhenInsideShape = false</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Ignore Explosion if it happens inside a shape. Default value is false. </p>

</div>
</div>
<a id="a0fe1d5703fdce33a031b23f58dfd5ed2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0fe1d5703fdce33a031b23f58dfd5ed2">&#9670;&nbsp;</a></span>MaxAngle</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">float MaxAngle = Constant.Pi / 15</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Max angle between rays (used when segment is large). Defaults to 15 degrees </p>

</div>
</div>
<a id="a1501f9b40800d4e8cd6190b181e61f5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1501f9b40800d4e8cd6190b181e61f5d">&#9670;&nbsp;</a></span>MaxShapes</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int MaxShapes = 100</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Maximum number of shapes involved in the explosion. Defaults to 100 </p>

</div>
</div>
<a id="a0068f329bc3a0da392be609b39b2207f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0068f329bc3a0da392be609b39b2207f">&#9670;&nbsp;</a></span>MinRays</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int MinRays = 5</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>How many rays per shape/body/segment. Defaults to 5 </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>Physics2D/Common/PhysicsLogic/RealExplosion.cs</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacenkast.html">nkast</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether.html">Aether</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d.html">Physics2D</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d_1_1_common.html">Common</a></li><li class="navelem"><a class="el" href="namespacenkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic.html">PhysicsLogic</a></li><li class="navelem"><a class="el" href="classnkast_1_1_aether_1_1_physics2_d_1_1_common_1_1_physics_logic_1_1_real_explosion.html">RealExplosion</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
